import request from '@/utils/request'

// 查询教练时间列表
export function listCoachTime(query) {
  return request({
    url: '/course/CoachTime/list',
    method: 'get',
    params: query
  })
}

// 查询教练时间详细
export function getCoachTime(id) {
  return request({
    url: '/course/CoachTime/view/' + id,
    method: 'get'
  })
}

// 新增教练时间
export function addCoachTime(data) {
  return request({
    url: '/course/CoachTime/add',
    method: 'post',
    data: data
  })
}

// 修改教练时间
export function updateCoachTime(data) {
  return request({
    url: '/course/CoachTime/update',
    method: 'put',
    data: data
  })
}

// 删除教练时间
export function delCoachTime(id) {
  return request({
    url: '/course/CoachTime/delete/' + id,
    method: 'delete'
  })
}
